﻿using System;

namespace WpfApp1.Acme.ApplicationAttribute {

    /// <summary>
    /// ComponentScan特性负责扫描指定包中的其他特性
    /// 其参数为包的路径，它是一个数组，使用时如下：
    /// [ComponentScan(new string[] { "Exmple" })]
    /// </summary>
    [AttributeUsage(AttributeTargets.Class,
        AllowMultiple = false, Inherited = false)]
    internal class ComponentScan : Attribute {
        public ComponentScan(string[] packagePaths) {
            PackagePaths = packagePaths;
        }
        public string[] PackagePaths { get; set; }
    }
}
